﻿using Abp.Application.Services.Dto;
using ARchGL.Platform.Dto;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace ARchGL.Platform.Dtos
{
    /// <summary>
    /// 自检 InputModel
    /// </summary>
    public class SelfChecksInput : EntityDto<Guid>
    {
        /// <summary>
        /// 项目标识
        /// </summary>
        public Guid ProjectId { get; set; }
        /// <summary>
        /// 状态（位枚举）：1已通知/待整改、2已整改/已通过、4已撤销
        /// </summary>
        [Range(1, 2, ErrorMessage = "状态只能1已通知/待整改、2已整改/已通过")]
        public EnumSelfCheckStatus Status { get; set; }
        /// <summary>
        /// 检查内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 执行检查人标识集合
        /// </summary>
        public List<Guid> CheckUsersArray { get; set; }
        /// <summary>
        /// 执行检查日期
        /// </summary>
        public DateTime CheckDate { get; set; }
        /// <summary>
        /// 被通知人
        /// </summary>
        public List<Guid> NotifyUsersArray { get; set; }
        /// <summary>
        /// 抄送人标识集合
        /// </summary>
        public List<Guid> CCUsersArray { get; set; }
        /// <summary>
        /// 视图标识集合
        /// </summary>
        public List<Guid> ProjectViewPortsArray { get; set; }
        /// <summary>
        /// 附件集合
        /// </summary>
        public List<AttachmentsInput> AttachmentsArray { get; set; }
    }
}
